package net.yunzhanyi.client.domain.dto;

import java.io.Serializable;
import java.util.StringJoiner;

/**
 * @author bestct
 * @date 2022/7/23
 * @type 类
 */

public class ClientLoginUser implements Serializable {

    /**
     * 账号ID
     */
    private Long aid;

    /**
     * 用户ID
     */
    private Long uid;

    /**
     * 账号头像
     */
    private String avatarUrl;

    /**
     * 用户昵称
     */
    private String nickName;


    /**
     * 性别
     */
    private Short sex;

    /**
     * 签名
     */
    private String signature;

    /**
     * 登录IP地址
     */
    private String ipaddr;

    /**
     * 登录地点
     */
    private String loginLocation;

    /**
     * 浏览器类型
     */
    private String browser;

    /**
     * 操作系统
     */
    private String os;

    public ClientLoginUser(Long aid, Long uid, String avatarUrl, String nickName, Short sex, String signature, String ipaddr, String loginLocation, String browser, String os) {
        this.aid = aid;
        this.uid = uid;
        this.avatarUrl = avatarUrl;
        this.nickName = nickName;
        this.sex = sex;
        this.signature = signature;
        this.ipaddr = ipaddr;
        this.loginLocation = loginLocation;
        this.browser = browser;
        this.os = os;
    }

    public ClientLoginUser() {
    }

    public void setAid(Long aid) {
        this.aid = aid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setSex(Short sex) {
        this.sex = sex;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public void setIpaddr(String ipaddr) {
        this.ipaddr = ipaddr;
    }

    public void setLoginLocation(String loginLocation) {
        this.loginLocation = loginLocation;
    }

    public void setBrowser(String browser) {
        this.browser = browser;
    }

    public void setOs(String os) {
        this.os = os;
    }

    public Long getAid() {
        return aid;
    }

    public Long getUid() {
        return uid;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public String getNickName() {
        return nickName;
    }

    public Short getSex() {
        return sex;
    }

    public String getSignature() {
        return signature;
    }

    public String getIpaddr() {
        return ipaddr;
    }

    public String getLoginLocation() {
        return loginLocation;
    }

    public String getBrowser() {
        return browser;
    }

    public String getOs() {
        return os;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", ClientLoginUser.class.getSimpleName() + "[", "]")
                .add("aid=" + aid)
                .add("uid=" + uid)
                .add("avatarUrl='" + avatarUrl + "'")
                .add("nickName='" + nickName + "'")
                .add("sex=" + sex)
                .add("signature='" + signature + "'")
                .add("ipaddr='" + ipaddr + "'")
                .add("loginLocation='" + loginLocation + "'")
                .add("browser='" + browser + "'")
                .add("os='" + os + "'")
                .toString();
    }
}
